<extend name="Base/base" />
<block name='head'>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width"/>
    <meta name="viewport" content="initial-scale=1.0,user-scalable=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
    <!--    <link href="/Public/Index/css/css.css" rel="stylesheet" /> 
        <link href="/Public/Index/css/demo.css" rel="stylesheet" /> -->

</block>
<block name="content" > 
    <div class="attendance">
        <div class="my_messages">
            <div class="people_img"><img src="{$userInfo.head}" /></div>
            <h2>{$userInfo.user_name}</h2>
            <div class="attendance_nr">
                <ul>
                    <li><span class="col1">{$attDaysCount}</span><br/>本月出勤</li>
                    <li><span class="col2">{$lateDaysCount}</span><br/>迟到</li>
                    <li><span class="col3">{$loseDaysCount}</span><br/>缺卡</li>
                </ul>
                <div class="time">
                    <if condition="$today['max'] eq null">
                    <p>昨日&nbsp;<span><if condition="$yestoday['min'] neq null">{$yestoday.min.time}上班打卡</if></span></p>
                    <p class="time_2"><span><if condition="$yestoday['max'] neq null">{$yestoday.max.time}下班打卡</if></span></p>
                    <p>今日&nbsp;<span><if condition="$today['min'] neq null">{$today.min.time}上班打卡</if></span></p>
                    </if>
                    <if condition="$today['min'] eq null">
                    <p>昨日&nbsp;<span><if condition="$yestoday['min'] neq null">{$yestoday.min.time}上班打卡<else/>未打卡</if></span></p>
                    <p class="time_2"><span><if condition="$yestoday['max'] neq null">{$yestoday.max.time}下班打卡<else/>未打卡</if></span></p>
                    </if>
                    <if condition="$today['max'] neq null">
                    <p>今日&nbsp;<span><if condition="$today['min'] neq null">{$today.min.time}上班打卡</if></span></p>
                    <p class="time_2"><span><if condition="$today['max'] neq null">{$today.max.time}下班打卡</if></span></p>
                    </if>
                </div>
            </div>
        </div>
        <div class="bolang"><img src="/Public/Index/img/bo.png" /></div>
        <div class="my_attendance">
            <h2>我的考勤</h2>
            <div class="select_time">
                <div class="time_left"><a class="pointer checkMonth" data-month="{$month}" data-type="1" data-year="{$year}"><img src="/Public/Index/img/arrow_left.svg" /></a></div>
                <h3>{$currentShow}</h3>
                <div class="time_right"><a class="pointer checkMonth" data-month="{$month}" data-type="2" data-year="{$year}"><img src="/Public/Index/img/arrow_right.svg" /></a></div>
            </div>
            <div class="kaoqin">
                <ul class="kaoqin_list">
                    <li><a href="{:U('lists',array('type'=>1,'month'=>$month))}"><span>{$attDaysCount}</span><br/>出勤</a></li>
                    <li><a href="{:U('lists',array('type'=>2,'month'=>$month))}"><span>{$lateDaysCount}</span><br/>迟到</a></li>
                    <li><a href="{:U('lists',array('type'=>3,'month'=>$month))}"><span>{$earlyCount}</span><br/>早退</a></li>
                    <li><a href="{:U('lists',array('type'=>4,'month'=>$month))}"><span>{$loseDaysCount}</span><br/>缺卡</a></li>
                </ul>
                <ul class="kaoqin_list">
                    <li><a href="{:U('attLists',array('type'=>5,'month'=>$month))}"><span>{$leaveCount}</span><br/>请假</a></li>
                    <li><a href="{:U('attLists',array('type'=>6,'month'=>$month))}"><span>{$evectionCount}</span><br/>出差</a></li>
                    <li><a href="{:U('attLists',array('type'=>7,'month'=>$month))}"><span>{$outCount}</span><br/>外出</a></li>
                    <li><a href="#"><span>{$yearLeave}</span><br/>剩余年假</a></li>
                </ul>
            </div>
        </div>
        <input type="hidden" id="currYear" value="{$year}" />
        <input type="hidden" id="currMonth" value="{$month}" />
        <input type="hidden" id="url" value="{:U('getOtherMounthData')}" />
    </div>

</block>
<block name="script">
    <script src="/Public/Index/js/att.js"></script>
    <script>
        $(initAttendance());
    </script>
</block>

